<div class ="wr">
    <form action="<?php echo base_url(). "schedule/build/" . $path["id"]; ?>" method="post">
    <div id="top">
        <div id="learning_path_information">
            <h2><?php echo $path["title"]; ?></h2>
            <span class="learning_path_description">
                <?php echo $information["description"]; ?>
            </span>
        </div>
        <div id="learning_path_functions">
            <input style=" width: 75%;" type="submit" name="submitBuild" value="Lưu kế hoạch" />
        </div>
    </div>
    <div id="bottom">
        <div id="learning_path_content">
            <?php foreach ($section as $cap_hoc_item): ?>
                <div class="step">
                    <h3><?php echo $cap_hoc_item['title']; ?></h3>
                    <span class="step_description">
                        <?php echo $cap_hoc_item['description'] ?>
                    </span>
                    <div class="learning_action">
                        <?php foreach ($action[$cap_hoc_item["id"]] as $act): ?>
                            <div class="resource">
                                <p>
                                    <img class="icon-elc" src="<?php echo base_url(); ?>assets/images/video.gif" alt="some_text"/>
                                    <a id="<?php echo $act["id"]; ?>" class="link-elc" href="<?php echo $act["link"]; ?>">
                                        <strong>THAM KHẢO :</strong><?php echo $act["title"]; ?>
                                    </a>
                                    <p>Chọn ngày: <input class="datepicker" type="text" name="date[<?php echo $act["id"]; ?>]"/></p>
                                </p>
                            </div>
                        <?php endforeach; ?>
                    </div>
                </div>
            <?php endforeach; ?>
        </div>
        <div id="supporting_boxs">
            <div class="box">
                <div class="box_title">
                    <h4>Tóm tắt nội dung</h4>
                </div>
                <div class="box_content">
                    <ul>
                        <?php foreach ($section as $cap_hoc_item): ?>
                            <li><?php echo $cap_hoc_item['title']; ?></li>
                        <?php endforeach; ?>
                    </ul>
                </div>
            </div>
            <div class="box">
                <div class="box_title">
                    <h4>Thông tin</h4>
                </div>
                <div class="box_content">
                    <ul>
                        <li>Phiên bản: <?php echo $information['version']; ?><br/>(<a href="<?php echo base_url() . "path/history/" . $path["id"]; ?>">Xem lịch sử thay đổi</a>)</li>
                        <li>Người tạo: <a href="<?php echo base_url() . "member/profile/" . $contributor[count($contributor) - 1]["id"]; ?>"><?php echo $contributor[count($contributor) - 1]["fullname"]; ?></a></li>
                        <li> Đóng góp
                            <ul>
                                <?php foreach ($contributor as $dong_gop_item): ?>
                                    <li><a href="<?php echo base_url() . "member/profile/" . $dong_gop_item['id']; ?>"><?php echo $dong_gop_item['fullname']; ?></a></li>
                                <?php endforeach; ?>
                            </ul>
                        </li>
                    </ul>
                </div>
            </div>
            <div class="box">
                <div class="box_title">
                    <h4>Chủ đề</h4>
                </div>
                <div class="box_content">
                    <table>
                        <?php foreach ($tag as $chu_de_item): ?>
                            <tr>
                                <td><a href="<?php echo base_url() . "home/tag/" . $chu_de_item['id']; ?>"><?php echo $chu_de_item['title']; ?></a></td>
                                <td><div class="tag_number"><?php echo $chu_de_item['path_number'] ?></div></td>

                            </tr>
                        <?php endforeach; ?>
                    </table>
                </div>
            </div>
        </div>
    </div>
    </form>
</div>
<script>
    $(function() {
        $( ".datepicker" ).datepicker();
        $( ".datepicker" ).datepicker("option", "dateFormat", "yy-mm-dd");
    });
</script>
<style>
    .datepicker {
        font-size: 90%;
        width:60px;
    }
</style>